package org.ru.mse10.cvis.web.model.initializer;

import org.ru.mse10.cvis.entity.cv.YearsWithinACompany;
import org.ru.mse10.cvis.entity.misc.DateRange;

/**
 * The Class YearsWithinCompanyInitializer.
 */
public class YearsWithinCompanyInitializer extends
		DefaultInstanceInitializer<YearsWithinACompany> {

	/**
	 * Instantiates a new years within company initializer.
	 */
	public YearsWithinCompanyInitializer() {
		super(YearsWithinACompany.class);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.ru.mse10.cvis.web.model.initializer.DefaultInstanceInitializer#
	 * newInstance()
	 */
	@Override
	public YearsWithinACompany newInstance() {
		YearsWithinACompany newInstance = super.newInstance();
		DateRange range = new DateRange();
		newInstance.setYears(range);
		return newInstance;
	}
}
